<?php
/**
 * Created by PhpStorm.
 * User: 式神 (luck48.com)
 * Email: 289650682@qq.com
 * Name: ${NAME}Administrator
 * Date: 2017-03-14
 * Time: 16:16
 */
namespace App\Http\Models;

use Illuminate\Database\Eloquent\Model;

class RoleUser extends Model{
    protected $table="role_user";

    /*
     * 定义逆向关系指向主键表
     * */
    public function AdminUser(){
        return $this -> belongsTo(Admin::class,'id');
    }
}